package bpm.domain.document;

import java.io.Serializable;

/**
 * 
 * @author <a mailto="hwangsyin@gmail.com">King</a>
 *
 */
public class CategoryView implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public Integer id;
	public String name;
	public Integer rank;
	public boolean enable;
	public String description;
	
	public CategoryView() {}
	public CategoryView(Category category) {
		if(category != null) {
			this.id = category.getId();
			this.name = category.getName();
			this.rank = category.getRank();
			this.enable = category.isEnable();
			this.description = category.getDescription();
		}
	}
}
